import request from '@/utils/request'
// ---------------- 管理员 ----------------
/**
 * 列表
 * @param {array} params 请求参数
 */
//供应商列表
export function getsupplierList(data) {
  return request({
    url: '/adminapi/Supplier/getSupplierList',
    method: 'post',
    data: data
  })
}
//获取全部供应商列表
export function getsupplierAll(data) {
  return request({
    url: '/adminapi/Supplier/querySupplierList',
    method: 'post',
    data: data
  })
}
//城市
export function cityList(data) {
  return request({
    url: '/adminapi/Supplier/getCityList',
    method: 'post',
    data: data
  })
}

//添加供应商
export function addSupplier(data) {
  return request({
    url: '/adminapi/Supplier/saveSupplier',
    method: 'post',
    data: data
  })
}

//修改供应商状态
export function SaveSupplierStatus(data) {
  return request({
    url: '/adminapi/Supplier/SaveSupplierStatus',
    method: 'post',
    data: data
  })
}
//删除供应商
export function delSupplier(data) {
  return request({
    url: '/adminapi/Supplier/delSupplier',
    method: 'post',
    data: data
  })
}
//获取供应商详情
export function getSupplierInfo(data) {
  return request({
    url: '/adminapi/Supplier/getSupplierInfo',
    method: 'post',
    data: data
  })
}
//分类
export function getlevedList(data) {
  return request({
    url: '/adminapi/Supplier/getSupplierLevelList',
    method: 'post',
    data: data
  })
}
//分类
export function addSupplierlevel(data) {
  return request({
    url: '/adminapi/Supplier/SaveSupplierLevel',
    method: 'post',
    data: data
  })
}
//类目
export function getCateLis(data) {
  return request({
    url: '/adminapi/GoodsCate/getCateList',
    method: 'post',
    data: data
  })
}
//获取产品类目
export function getCateLisNew(data) {
  return request({
    url: '/adminapi/SupplierGoods/querySupplierGoodsCateList',
    method: 'post',
    data: data
  })
}
//添加编辑
export function addCateLis(data) {
  return request({
    url: '/adminapi/GoodsCate/SaveGoodsCate',
    method: 'post',
    data: data
  })
}
//产品列表
export function goodslist(data) {
  return request({
    url: '/adminapi/SupplierGoods/getSupplierGoodsList',
    method: 'post',
    data: data
  })
}
//类目列表
export function GoodsCateList(data) {
  return request({
    url: '/adminapi/SupplierGoods/querySupplierGoodsCateList',
    method: 'post',
    data: data
  })
}
//软删除产品
export function delgoods(data) {
  return request({
    url: '/adminapi/SupplierGoods/DelGoods',
    method: 'post',
    data: data
  })
}
//获取供货商列表
export function supplierLists(data) {
  return request({
    url: '/adminapi/SupplierGoods/querySupplierList',
    method: 'post',
    data: data
  })
}
//添加产品
export function addsuppliergoods(data) {
  return request({
    url: '/adminapi/SupplierGoods/SaveSupplierGoods',
    method: 'post',
    data: data
  })
}
//添加产品详情
export function getSupplierGoodsInfo(data) {
  return request({
    url: '/adminapi/SupplierGoods/getSupplierGoodsInfo',
    method: 'post',
    data: data
  })
}

//商品标签列表
export function getLabelList(data) {
  return request({
    url: '/adminapi/GoodsLabel/getLabelList',
    method: 'post',
    data: data
  })
}
//编辑标签列表
export function SaveLabel(data) {
  return request({
    url: '/adminapi/GoodsLabel/SaveLabel',
    method: 'post',
    data: data
  })
}
//删除标签
export function delLabel(data) {
  return request({
    url: '/adminapi/GoodsLabel/delLabel',
    method: 'post',
    data: data
  })
}
//供应商产品规格列表
export function getGoodsProductList(data) {
  return request({
    url: '/adminapi/GoodsProduct/getGoodsProductList',
    method: 'post',
    data: data
  })
}
//供应商产品规格修改添加
export function SaveGoodsProduct(data) {
  return request({
    url: '/adminapi/GoodsProduct/SaveGoodsProduct',
    method: 'post',
    data: data
  })
}
//供应商列表导出
export function exportSupplierList(data) {
  return request({
    url: '/adminapi/Supplier/exportSupplierList',
    method: 'post',
    data: data
  })
}
//获取供货地址
export function getPublicSupplierAddressList(data) {
  return request({
    url: '/adminapi/Supplier/getPublicSupplierAddressList',
    method: 'post',
    data: data
  })
}
//修改保存供货商地址
export function SaveSupplierAddress(data) {
  return request({
    url: '/adminapi/Supplier/SaveSupplierAddress',
    method: 'post',
    data: data
  })
}
//获取供货商地址详情
export function getSupplierAddressInfo(data) {
  return request({
    url: '/adminapi/Supplier/getSupplierAddressInfo',
    method: 'post',
    data: data
  })
}
//删除供货商地址
export function delSupplierAddress(data) {
  return request({
    url: '/adminapi/Supplier/delSupplierAddress',
    method: 'post',
    data: data
  })
}
//绑定管理员
export function boundAdmin(data) {
  return request({
    url: '/adminapi/Supplier/boundAdmin',
    method: 'post',
    data: data
  })
}
//获取模版列表
export function freightgetList(data) {
  return request({
    url: '/adminapi/freight/getList',
    method: 'post',
    data: data
  })
}
//获取库存明细列表
export function inventoryRecord(data) {
  return request({
    url: '/adminapi/SupplierGoods/inventoryRecord',
    method: 'post',
    data: data
  })
}

